"""
URL configuration for jjzj project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/5.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import path


from app01.views import views, EquipmentRoom_view

urlpatterns = [
    # path('admin/', admin.site.urls),
    path('user_info/depart/list/', views.depart_list, name='depart_list'),
    path('user_info/depart/add/', views.depart_add, name='depart_add'),
    path('user_info/depart/<int:nid>/edit/', views.depart_edit, name='depart_edit'),
    path('user_info/depart/<int:nid>/delete/', views.depart_delete, name='depart_delete'),
    path('user_info/upload/file/', views.upload_file, name='upload_file'),
    path('user_info/download/file/', views.download_file, name='download_file'),
    path('user_info/depart/multi/', views.depart_multi, name='depart_multi'),
    path('user_info/export/', views.export_to_excel, name='export_to_excel'),

    path('EquipmentRoom_info/EquipmentRoom/list/', EquipmentRoom_view.EquipmentRoom_list, name='EquipmentRoom_list'),
    path('EquipmentRoom_info/EquipmentRoom/add/', EquipmentRoom_view.EquipmentRoom_add, name='EquipmentRoom_add'),
    path('search_users',EquipmentRoom_view.search_users, name='search_users'),
    path('add_equipment_room',EquipmentRoom_view.add_equipment_room, name='add_equipment_room'),

]
